package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.account.AccountRecharge;
import com.ms.p2p.provider.MemberAccountRechargeProvider;
import com.ms.p2p.service.impl.MemberAccountRechargeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class MemberAccountRechargeProviderImpl implements MemberAccountRechargeProvider {

    @Autowired
    MemberAccountRechargeServiceImpl memberAccountRechargeService;

    public int insert(AccountRecharge recharge) {
        return memberAccountRechargeService.insert(recharge);
    }

    public AccountRecharge findById(int rechagreId) {
        return memberAccountRechargeService.findById(rechagreId);
    }

    public AccountRecharge findByIdStatus0(int rechagreId) {
        return memberAccountRechargeService.findByIdStatus0(rechagreId);
    }

    public Map<String, Object> findDetail(int rechagreId) {
        return memberAccountRechargeService.findDetail(rechagreId);
    }

    public int updateVerify(AccountRecharge map) {
        return memberAccountRechargeService.updateVerify(map);
    }


    public void onlineRecharge(String ip,AccountRecharge recharge, String name) {
         memberAccountRechargeService.onlineRecharge(ip,recharge,name);
    }

    public String selectTotalTakeCash(int user_id) {
        return memberAccountRechargeService.selectTotalTakeCash(user_id);
    }

    public List<AccountRecharge> findPager(Integer user_id, int begin, Integer pageSize) {
        return memberAccountRechargeService.findPager(user_id,begin,pageSize);
    }

    public int findCount(Integer user_id) {
        return memberAccountRechargeService.findCount(user_id);
    }

    public List<Map<String, Object>> findPaager(String rechargeType,String payWay, String money, String userName, String trade_no, String status, String begin_date, String end_date, int begin, Integer pageSize) {
        return memberAccountRechargeService.findPaager(rechargeType,payWay,money,userName,trade_no,status,begin_date,end_date,begin,pageSize);
    }

    public int findCount(String rechargeType,String payWay, String money, String userName, String trade_no, String status, String begin_date, String end_date) {
        return memberAccountRechargeService.findCount(rechargeType,payWay,money,userName,trade_no,status,begin_date,end_date);
    }

    public String selectTotalRecharge(Integer id) {
        return memberAccountRechargeService.selectTotalRecharge(id);
    }

    public AccountRecharge findByTrano(String requestId, Integer status) {
        return memberAccountRechargeService.findByTrano(requestId,status);
    }




}
